package com.tlxch.server.general.Impl;

import com.tlxch.mapper.SAttitudeMapper;
import com.tlxch.pojo.SAttitudeWithBLOBs;
import com.tlxch.server.general.TattitudeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class TattitudeServiceImpl implements TattitudeService {
    @Autowired
    SAttitudeMapper sAttitudeMapper;

    public void addAttitude(SAttitudeWithBLOBs sAttitude) {
        sAttitude.setSaCreatetime(LocalDateTime.now());
        sAttitudeMapper.insert(sAttitude);
    }
}
